<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>地址修改</title>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>res/lsj/js/layui/css/layui.css" media="all">
<style type="text/css">
	body{
		margin:20px 0px;
	}
</style>
</head>
<body>
	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>修改地址</legend>
	</fieldset>

	<form class="layui-form" action="<%=basePath%>/shArea/update" method="post">
		<div class="layui-input-inline">
			<input type="hidden" name="addressId" id="addressId" required
				lay-verify="required" placeholder="地址ID" autocomplete="off"
				class="layui-input">
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">用户ID</label>
				<div class="layui-input-inline">
					<input type="text" name="userId" id="userId" required
						lay-verify="required" placeholder="用户ID" autocomplete="off" maxlength="10"
						class="layui-input">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">地址内容</label>
				<div class="layui-input-inline">
					<input type="text" name="addressContent" id="addressContent" required
						lay-verify="required" placeholder="地址内容" maxlength="9"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			
		</div>
		
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">地址详情</label>
				<div class="layui-input-inline">
					<input type="text" name="addressDetails" id="addressDetails" required
						lay-verify="required" maxlength="11" placeholder="地址详情"
						autocomplete="off" class="layui-input">
				</div>
			</div>
			
			
		<div class="layui-form-item" style="margin:10px 0px;">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-submit=""
					lay-filter="update" value="立即修改">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
	<script src="<%=basePath%>res/lsj/js/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript">
		layui.use('form', function(){
			  var form = layui.form
			  ,layer = layui.layer
			  ,$ = layui.$;
		
			  form.on('submit(update)',function(){
				  parent.location.reload(); // 父页面刷新
			  });
			});
	</script>
</body>
</html>